package services;

import dao.UserDao;
import model.User;


public class UserService {

    private final UserDao userDao = new UserDao();

    public User doLogin(String username, String password) {
        return userDao.getUserByUsername(username);
    }

    public int doRegister(String username, String password) {
        return userDao.insert(username, password);
    }
}
